package cn.good.yan.service.impl;

import cn.good.yan.mapper.UserMapper;
import cn.good.yan.pojo.User;
import cn.good.yan.service.UserService;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * User 实体 Service层
 */
// @DS 这个注解可以加在 类上、方法上，就近原则，改方法执行的数据源
@DS("slave2")
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {


}




